#include <QCoreApplication>
#include <iostream>

using namespace std;

void pr_4_4()
{
    cout << 12 / 3 * 4 + 5 * 15 + 24 % 4 / 2 << endl;
}

void pr_4_5()
{
    cout << -30 * 3 + 21 / 5 << endl;
    cout << -30 + 3 * 21 / 5 << endl;
    cout << 30 / 3 * 21 % 5 << endl;
    cout << -30 / 3 * 21 % 4 << endl;
}

void pr_4_6()
{
    cout << "请输入一个整数：" << endl;
    int val;
    while (cin >> val) {
        if (val % 2 == 0) {
            cout << "输入的是偶数 odd" << endl;
        } else {
            cout << "输入的是奇数 even" << endl;
        }
    }
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    pr_4_6();

    return a.exec();
}
